package com.example.auth.mapper;

import com.example.auth.domain.UserIdcard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.auth.domain.UserPhone;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author CETC
* @description 针对表【user_idcard_0】的数据库操作Mapper
* @createDate 2025-11-01 16:17:22
* @Entity com.example.system.auth.domain.UserIdcard0
*/
public interface UserIdcardMapper extends BaseMapper<UserIdcard> {

    @Select("SELECT * FROM ${tableName} WHERE  user_idcard=#{userIdCard} ")
    public UserIdcard getByIdcard(@Param("tableName")String tableName, @Param("userIdCard")String userIdCard);

    @Update("delete from ${tableName} where user_idcard=#{userIdCard}")
    public int deleteByIdcard(@Param("tableName")String tableName,@Param("userIdCard")String userIdCard);


}




